/*
 *  checkPoints.h
 *  opencvExample
 *
 *  Created by 真鍋 大度 on 11/03/01.
 *  Copyright 2011 Rhizomatiks. All rights reserved.
 *
 */

#pragma once
#include "ofMain.h"

class checkPoints{
public:
	void setup(ofVec2f & _pos){
		pos = _pos;
		bOn = false;
	}
	void update(){
		ofColor colTarget(0, 0, 0);
		col = col.lerp(colTarget, 0.1);
	}
	void draw(){
		bOn = false;
		ofSetColor(col);
		ofRect(pos.x, pos.y, 10, 10);
	}
	void pass(int _ballID){
		bOn = true;
		col.set(255, 255, 255);
	}
	ofVec2f pos;
	ofColor col;
	bool bOn;
	int ballID;
};